package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.PersonProfessionalEvaluation;
import com.zhijian.medical.entity.vo.request.PersonProfessionalEvaluationSearchVo;
import com.zhijian.medical.entity.vo.response.PersonProfessionalEvaluationVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PersonProfessionalEvaluationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PersonProfessionalEvaluation record);

    int insertSelective(PersonProfessionalEvaluation record);

    PersonProfessionalEvaluation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PersonProfessionalEvaluation record);

    int updateByPrimaryKey(PersonProfessionalEvaluation record);

    int count(PersonProfessionalEvaluationSearchVo personProfessionalEvaluationSearchVo);

    List<PersonProfessionalEvaluationVo> selectList(PersonProfessionalEvaluationSearchVo personProfessionalEvaluationSearchVo);

    PersonProfessionalEvaluationVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<PersonProfessionalEvaluation> entities);

    /**
     * 查询出某天最新数据的code
     *
     * @param day
     * @return
     */
    String selectMaxCodeByDay(String day);
}